package com.CST.service;


import com.CST.dto.InvoiceRecordsDTO;
import com.CST.entity.InvoiceRecords;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 发票记录表 服务类
 * </p>
 *
 * @author qtx
 * @since 2022-08-31
 */
public interface IInvoiceRecordsService extends IService<InvoiceRecords> {
    /**
     * 分页查询
     *
     * @param dto 条件信息
     * @return 分页结果
     */
//    IPage<InvoiceRecordsVo> findPage(InvoiceRecordsDto dto);

    List<InvoiceRecords> findPage(InvoiceRecordsDTO dto);

    /**
     * 更新或添加
     *
     * @param info 数据详情
     * @return true or false
     */
    boolean saveOrUpdateNew(InvoiceRecords info);

    /**
     * 文件导出
     *
     * @param response
     */
    void exportExcel(HttpServletResponse response) throws ClassNotFoundException;


}
